package com.rabbitpre.material.interfaces.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * @author xiaoshuang
 * @version v 1.0
 * @ClassName: ImageMaterialDTO
 * @date 2022/11/10 11:27
 */
@ApiModel("音频素材分页响应对象")
public class MusicMaterialPageDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 素材id
     */
    @ApiModelProperty("素材id")
    private Long id;

    /**
     * 素材名
     */
    @ApiModelProperty("素材名")
    private String name;

    /**
     * 素材url
     */
    @ApiModelProperty("素材url")
    private String url;

    /**
     * 音频格式：mp3等
     */
    @ApiModelProperty("音频格式：mp3等")
    private String type;

    /**
     * 音频大小，单位byte
     */
    @ApiModelProperty("音频大小，单位byte")
    private Integer size;

    /**
     * 所属租户id
     */
    @ApiModelProperty("所属租户id")
    private Long tenantId;

    /**
     * 所属部门id
     */
    @ApiModelProperty("所属部门id")
    private Long deptId;

    /**
     * 上传者id
     */
    @ApiModelProperty("上传者id")
    private Long uid;

    /**
     * 删除标志
     * <p>
     * -1：回收中，0：未删除，1：已删除
     */
    @ApiModelProperty("删除标志")
    private Integer deleteFlag;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty("更新时间")
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }


    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("ImageMaterialPageDTO{");
        sb.append("id=").append(id);
        sb.append(", name='").append(name).append('\'');
        sb.append(", url='").append(url).append('\'');
        sb.append(", type='").append(type).append('\'');
        sb.append(", size=").append(size);
        sb.append(", tenantId='").append(tenantId).append('\'');
        sb.append(", deptId='").append(deptId).append('\'');
        sb.append(", uid='").append(uid).append('\'');
        sb.append(", deleteFlag='").append(deleteFlag).append('\'');
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append('}');
        return sb.toString();
    }
}
